{% extends "base.html" %}
{% load tppt_extras %}


{% block content %}

<table>
{% if columns %}
	<thead>
	<tr>
		<th></th>
	{% for col in columns %}
		<th>{{col}}</th>
	{% endfor%}
	</tr>
	</thead>
	<tbody>
	{% for object in object_list %}
		<tr>
		<td><a href="{%url tppt.data.views.show_ppa object.id%}">Details</a></td>
		{% for col in columns %}
			<td>{{object|attr:col}}</td>
		{% endfor%}
		</tr>
	{% endfor %}
	</tbody>
</table>
{% else %}
{% for object in object_list %}
	<div><a href="{%url tppt.data.views.show_ppa object_id=object.pk%}">{{object}}</a></div>
{% endfor %}
{% endif %}

{% endblock %}
